<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <input>
    <div id="test">
        南昌大学
    </div> 
    <div id="oninput">
        输入的信息是：<span>"nowInputText"</span>
    </div>
    <input id="inputText" type="text">

    <button id="getInput">点击消失</button>
</input>
</body>
<script>
    var testDom = document.getElementById("test");
    testDom.innerText = "NCU";
    console.log(testDom);

    var inputDom = document.getElementById("inputText");
    var buttonDom = document.getElementById("getInput");
    buttonDom.onclick= function(){
        alert(inputDom.value);
    }
    var spanDom = document.querySelector("span");

    buttonDom.onclick = function(){
        inputDom.style.display = 'none';
    }
    querySelector("table nth-child(2)")
</script>
</html>